If you cannot enter a code because you have lost your device, you can use Find Devices to locate it or Manage Devices to remove your Apple Pay cards from it.
Find Devices
Manage devices